/*******************************************************************************
 * Copyright (c) 2008 Sylvain Sicard.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License v2.1
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * 
 * Contributors:
 *     Sylvain Sicard - initial API and implementation
 ******************************************************************************/
package fr.jade.event;


public class SimpleEvent implements Event {
	
	private EventHeader header;
	private EventBody body;
	
	public SimpleEvent(EventHeader type, EventBody body){
		this.header = type;
		this.body = body;
	}
	
	public EventHeader getEventHeader() {
		return this.header;
	}

	public EventBody getEventBody() {
		return this.body;
	}
	
	public String toString(){
		return "Header : " + header.toString() + "\tBody : "+body.toString();
	}

  public int hashCode() {
    return (body.toString()).hashCode();
  }
  
  
	
}
